package com.lagou.edu.service.impl;

import com.lagou.edu.service.CodeRpcService;
import com.lagou.edu.service.LagouAuthCodeService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author mcl
 * @date 2021/8/20 2:58 下午
 * @description
 */
@Service
public class CodeRpcServiceImpl implements CodeRpcService {

    @Autowired
    private LagouAuthCodeService lagouAuthCodeService;

    @Override
    public int validateAuthCode(String email, String code) {
        return lagouAuthCodeService.validateAuthCode(email, code);
    }
}
